package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.DriverStatus;
import com.example.automanagement.mapper.DriverStatusMapper;
import com.example.automanagement.service.DriverStatusService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class DriverStatusServiceImpl implements DriverStatusService {
    @Resource
    private DriverStatusMapper statusMapper;

    @Override
    public void addDriverStatus(DriverStatus driverStatus) {
        statusMapper.addDriverStatus(driverStatus);
    }

    @Override
    public void updateDriverBusy(String userId) {
        statusMapper.updateDriverBusy(userId);
    }

    @Override
    public void updateDriverFree(String userId) {
        statusMapper.updateDriverFree(userId);
    }

    @Override
    public void deleteDriverStatus(String userId) {
        statusMapper.deleteDriverStatus(userId);
    }
}
